package com.yidao.app.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.yidao.app.domain.App;

@Controller
public class AppController {
	
	@RequestMapping("/main")
	public ModelAndView main(){
		ModelAndView mv = new ModelAndView();
		mv.addObject(App.getInstance());
		mv.setViewName("/main");
		return mv;
	}
}
